<?php


namespace app\lib\api;


class LoginOrRegisterFormValidate extends BaseValidate
{
    protected $rule = [

        'code'  => 'require|number|max:6',
        'phone' => 'phone',
    ];

    protected $message = [
        'code.require'   => '验证码不能为空',
        'code.number'    => '验证码必须是数字',
        'code.max'       => '验证码不能超过6位',
        'phone'          => '手机格式不对',
    ];
}